import Permissions from "@/constant/permission";

export const permissions = [
  {
    title: "积分管理",
    key: Permissions.POINT_MANAGE,
    children: [
      {
        title: "批量修改",
        key: Permissions.POINT_MULTIPLE_MANAGE,
        children: [
          { title: "创建批量修改", key: Permissions.POINT_MULTIPLE_ADD },
          { title: "查看修改记录", key: Permissions.POINT_MULTIPLE_CHECK },
          { title: "删除修改记录", key: Permissions.POINT_MULTIPLE_DEL },
          { title: "编辑修改记录", key: Permissions.POINT_MULTIPLE_EDIT },
          { title: "查找修改记录", key: Permissions.POINT_MULTIPLE_SEARCH },
          { title: "撤销修改记录", key: Permissions.POINT_MULTIPLE_WITHDRAW },
        ],
      },
      {
        title: "积分类型",
        key: Permissions.POINT_TYPE_MANAGE,
        children: [
          { title: "新增", key: Permissions.POINT_TYPE_ADD },
          { title: "删除", key: Permissions.POINT_TYPE_DEL },
          { title: "修改", key: Permissions.POINT_TYPE_UPD },
          { title: "查找", key: Permissions.POINT_TYPE_SEARCH },
        ],
      },
      {
        title: "单个修改",
        key: Permissions.POINT_SINGLE_MANAGE,
        children: [
          { title: "新增", key: Permissions.POINT_SINGLE_ADD },
          { title: "删除", key: Permissions.POINT_SINGLE_DEL },
          { title: "修改", key: Permissions.POINT_SINGLE_UPD },
          { title: "查找", key: Permissions.POINT_SINGLE_SEARCH },
        ],
      },
    ],
  },
  {
    title: "活动管理",
    key: Permissions.ACTIVITY_MANAGE,
    children: [
      {
        title: "活动记录",
        key: Permissions.ACTIVITY_RECORD_MANAGE,
        children: [
          { title: "新增", key: Permissions.ACTIVITY_RECORD_ADD },
          { title: "删除", key: Permissions.ACTIVITY_RECORD_DEL },
          { title: "发布", key: Permissions.ACTIVITY_RECORD_POST },
          { title: "修改", key: Permissions.ACTIVITY_RECORD_UPD },
        ],
      },
      {
        title: "活动类型",
        key: Permissions.ACTIVITY_TYPE_MANAGE,
        children: [
          { title: "新增", key: Permissions.ACTIVITY_TYPE_ADD },
          { title: "删除", key: Permissions.ACTIVITY_TYPE_DEL },
          { title: "修改", key: Permissions.ACTIVITY_TYPE_UPD },
          { title: "查找", key: Permissions.ACTIVITY_TYPE_SEARCH },
        ],
      },
    ],
  },
  {
    title: "补录审核",
    key: Permissions.MAKEUP_MANAGE,
    children: [
      { title: "审核", key: Permissions.MAKEUP_RECORD_AUDIT },
      { title: "撤回", key: Permissions.MAKEUP_RECORD_WITHDRAW },
    ],
  },
  {
    title: "排行榜管理",
    key: Permissions.RANK_MANAGE,
    children: [{ title: "禁榜", key: Permissions.RANK_MANAGE_BAN }],
  },
  {
    title: "考勤管理",
    key: Permissions.ATTENDANCE_MANAGE,
    children: [
      {
        title: "签到管理",
        key: Permissions.ATTENDANCE_SIGNIN_MANAGE,
        children: [
          { title: "新增", key: Permissions.ATTENDANCE_SIGNIN_ADD },
          { title: "删除", key: Permissions.ATTENDANCE_SIGNIN_DEL },
          { title: "修改", key: Permissions.ATTENDANCE_SIGNIN_UPD },
        ],
      },
      {
        title: "分组管理",
        key: Permissions.ATTENDANCE_GROUP_MANAGE,
        children: [
          { title: "新增", key: Permissions.ATTENDANCE_GROUP_ADD },
          { title: "删除", key: Permissions.ATTENDANCE_GROUP_DEL },
          { title: "修改", key: Permissions.ATTENDANCE_GROUP_UPD },
          { title: "查找", key: Permissions.ATTENDANCE_GROUP_SEARCH },
        ],
      },
      {
        title: "值日管理",
        key: Permissions.ATTENDANCE_DUTY_MANAGE,
        children: [
          { title: "安排值日", key: Permissions.ATTENDANCE_DUTY_ARRANGE },
          { title: "取消值日", key: Permissions.ATTENDANCE_DUTY_CANCLE },
          { title: "设置学期", key: Permissions.ATTENDANCE_DUTY_SET_TERM },
        ],
      },
    ],
  },
  {
    title: "公告管理",
    key: Permissions.NOTICE_MANAGE,
    children: [
      { title: "新增", key: Permissions.NOTICE_ADD },
      { title: "删除", key: Permissions.NOTICE_DEL },
      { title: "修改", key: Permissions.NOTICE_UPD },
      { title: "查找", key: Permissions.NOTICE_SEARCH },
      { title: "隐藏", key: Permissions.NOTICE_HIDE },
    ],
  },
  {
    title: "系统管理",
    key: Permissions.SYSTEM_MANAGE,
    children: [
      {
        title: "成员管理",
        key: Permissions.SYSTEM_MEMBER_MANAGE,
        children: [
          { title: "新增", key: Permissions.SYSTEM_MEMBER_ADD },
          { title: "删除", key: Permissions.SYSTEM_MEMBER_DEL },
          { title: "修改", key: Permissions.SYSTEM_MEMBER_UPD },
          { title: "查找", key: Permissions.SYSTEM_MEMBER_SEARCH },
          { title: "封禁", key: Permissions.SYSTEM_MEMBER_BAN },
        ],
      },
      {
        title: "角色管理",
        key: Permissions.SYSTEM_ROLE_MANAGE,
        children: [
          { title: "新增", key: Permissions.SYSTEM_ROLE_ADD },
          { title: "删除", key: Permissions.SYSTEM_ROLE_DEL },
          { title: "修改", key: Permissions.SYSTEM_ROLE_UPD },
          { title: "查找", key: Permissions.SYSTEM_ROLE_SEARCH },
        ],
      },
    ],
  },
];
